package com.hk.commons.poi.excel.read.sax.v03.handler;

import com.hk.commons.poi.excel.read.AbstractExcelReadExecutor;
import com.hk.commons.poi.excel.read.sax.v03.XlsReadContext;
import lombok.RequiredArgsConstructor;
import org.apache.poi.hssf.record.CountryRecord;
import org.apache.poi.hssf.record.ExtendedFormatRecord;
import org.apache.poi.hssf.record.Record;
import org.apache.poi.hssf.record.StyleRecord;

/**
 * @param <T>
 * @author Kevin
 */
@RequiredArgsConstructor
public class EOFRecordHandler<T> implements XlsRecordHandler {

    private final AbstractExcelReadExecutor<T> excelReadExecutor;

    @Override
    public void processRecord(Record poiRecord, XlsReadContext readContext) {
//        if (readContext.isSheet()) {
//            var currentSheet = readContext.getOrderBoundSheetRecords()[readContext.getCurrentSheetIndex()];
//            SheetData<?> sheetData = readContext.getSheetData();
//            sheetData.setSheetIndex(readContext.getCurrentSheetIndex());
//            sheetData.setSheetName(currentSheet.getSheetname());
//            result.addSheetData(sheetData);
//            if (CollectionUtils.isNotEmpty(sheetData.getErrorLogs())) {
//                result.addErrorLogList(sheetData.getErrorLogs());
//            }
//            cleanSheetData();
//            excelReadExecutor.onSheetEnd(readContext.getCurrentSheetIndex(), currentSheet.getSheetname());
//        }

        ExtendedFormatRecord extendedFormatRecord = null;

        StyleRecord styleRecord = null;
        CountryRecord countryRecord = null;

    }
}
